import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';

import { HomePage } from '../pages/home/home';
import { DiscoveryPage } from '../pages/discovery/discovery';
import { MorePage } from '../pages/more/more';
import { ChatPage } from '../pages/chat/chat';
import { NotificationPage } from '../pages/notification/notification';

import { TabsPage } from '../pages/tabs/tabs';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { LoginService } from '../providers/rest/login-service';
import { HttpClientModule } from '@angular/common/http';

@NgModule({
	declarations: [MyApp, DiscoveryPage, MorePage, ChatPage, NotificationPage, HomePage, TabsPage],
	imports: [BrowserModule, HttpClientModule, IonicModule.forRoot(MyApp)],
	bootstrap: [IonicApp],
	entryComponents: [MyApp, DiscoveryPage, MorePage, ChatPage, NotificationPage, HomePage, TabsPage],
	providers: [StatusBar, SplashScreen, { provide: ErrorHandler, useClass: IonicErrorHandler }, LoginService],
})
export class AppModule {}
